<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class MediatorInfo extends Model
{
    //
    use SoftDeletes;
    protected $primaryKey = 'users_id';
    protected $table = 'mediator_infos';

    protected $fillable = ['name', 'code','tel','users_id','organization_id'];

    public function user()
    {
        return $this->belongsTo(User::class, 'users_id');
    }
    public function organization(){
        return $this->belongsTo(MediationOrganizationInfos::class,'organization_id');
    }
}
